package chai.ning.statics;


public class Sheep
{
  public static String school = "大肥羊学校";
  public String name;
  public int age;

  public void introduce()
  {
    System.out.println("我叫" + this.name + "，今年" + this.age + "岁");
  }

  public static void show()
  {
    System.out.println(school);
  }

  public static void main(String[] args)
  {
    System.out.println(school);

    System.out.println("- - - - - - - - - - - -");

    show();

    System.out.println("- - - - - - - - - - - -");

    Sheep s = null;
    s = new Sheep();
    s.name = "懒羊羊";
    s.age = 5;
    s.introduce();

    show();
    System.out.println(school);
    school = "小肥羊火锅";

    System.out.println("- - - - - - - - - - - -");

    Sheep x = null;
    x = new Sheep();
    x.name = "慢羊羊";
    x.age = 50;
    x.introduce();

    show();
    System.out.println(school);

    System.out.println("- - - - - - - - - - - -");

    show();
  }
}